package com.ruoyi.mp.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.mp.api.domain.MpGetCode;
import com.ruoyi.mp.api.factory.RemoteMpCodeFactoryFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 文件服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteMpCodeFactoryService", value = ServiceNameConstants.MP_SERVICE, fallbackFactory = RemoteMpCodeFactoryFactory.class)
public interface RemoteMpCodeFactoryService
{
    /**
     * 上传文件
     *
     * @param
     * @return 结果
     */
    @PostMapping( "/account/getcodeUrl")
    public R<String> mpGetcodeUrl(@RequestBody MpGetCode mpGetCode, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
